import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

//引入每个页面的仓库store
import home from './home'
import search from './search'
import detail from './detail'
import cartlist from './cartlist'
import user from './user'
import trade from './trade'

//对外暴露Store实例
export default new Vuex.Store({
	modules:{
		home,
		search,
		detail,
		cartlist,
		user,
		trade
	}
})
